<!DOCTYPE html>
<%@page contentType="text/html;charset=UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/tld/token.tld" prefix="token" %>


<style>
    .contentpanel{
        margin: 10px 20px;
    }
    .btn-group2-s .btn-group2.cen-back{
        float: none;
        text-align: center;
    }
    .btn-group2 .btn{
        float: none;
    }
</style>

<div class="contentpanel">

    <div class="panel panel-default">

        <div class="row">
            <div class="panel-body panel-body-ws">
                <form>
                    <token:token/>
                    <input type="hidden" name="id" value="${notice.id}">
                    <textarea name="content" style="display:none;width:0;height:0;">${notice.content}</textarea>

                    <div class="row">
                        <div class="panel-body panel-body-ws" style="padding:0px;">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><em
                                            class="color-red btian">*</em>标题：</label>

                                    <div class="col-md-8">
                                        <input type="text" class="form-control" name="title" value="${notice.title}">
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><em
                                            class="color-red btian">*</em>类别：</label>

                                    <div class="select-container select select-container50 input-group-btn col-md-6">
                                        <select class="select select-offscreen" name="type">
                                            <option value="">请选择类别</option>
                                            <option value="0" ${notice.type==0?'selected':''}>公告</option>
                                            <option value="1" ${notice.type==1?'selected':''}>动态</option>
                                            <option value="2" ${notice.type==2?'selected':''}>热门动态</option>
                                            <option value="3" ${notice.type==3?'selected':''}>导购</option>
                                            <option value="4" ${notice.type==4?'selected':''}>信息</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><em
                                            class="color-red btian">*</em>内容：</label>

                                    <div class="col-xs-8">

                                        <script id="editor" type="text/plain" style="width:100%;height:500px;"></script>

                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>

                    <div class="btn-group2-s">
                        <div class="panel-body panel-body2">
                            <div class="btn-group2 cen-back">
                                <button type="button" class="btn btn-primary btn-4-save">保存</button>
                                <button type="button" class="btn btn-default btn-4-back">取消</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script src="js/ctm/notice-edit.js"></script>
</div>